<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/token.jsp"%>
<%
    String date = input.getDesc("date", "=====");
    List list = QBuilder.db("basedb").select("distinct DATE_FORMAT(start, '%Y-%m-%d')").from("Arrangement").where(new Where("hospital=", hospital).and("status=", STATUS_ENABLE).and("DATE_FORMAT(start,'%Y-%m')=", date).and("partner=", token.getUid())).order("start", QBuilder.asc).query().getResultObj();
    if (isEmpty(list)) {
        msg = new Message(30041, "暂无日程");
    }
    msg.put("data", list);
    Tools.encryptPrint(out, msg);
%>
